#!/usr/bin/python
import Entity
import pygame
import game_engine.GameEngine
import sys


# Representation of a door
class ExitEntity(Entity.Entity):



    # Obvious
    def __init__(self, name):
        super(ExitEntity, self).__init__(name)
        self.m_LevelManager = game_engine.GameEngine.getGameEngine().getLevelManager()


    # Called when an entity attempts to interact with this entity by bumping into it
    def interactBumped(self, otherEntity):
        if(otherEntity.getName() == "PLAYER"):
            sys.exit(1)

        return False


